package cn.edu.nchu.fragmentdemo.utils;

import org.osmdroid.util.GeoPoint;

public class CaculateOfTwoGeoPoint {

    public static GeoPoint getMid(GeoPoint p1, GeoPoint p2) {
        GeoPoint p = new GeoPoint(0, 0);
        p.setLongitude((p1.getLongitude() + p2.getLongitude()) / 2);
        p.setLatitude((p1.getLatitude() + p2.getLatitude()) / 2);
        return p;
    }
}
